.network-info {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.network-info-inner {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  width: 320px;
  overflow: hidden;
}

.network-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

.network-info-header h3 {
  margin: 0;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color-light);
  padding: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed) ease;
}

.close-button:hover {
  background-color: var(--hover-color);
}

.network-info-content {
  padding: 15px;
}

.network-info-content p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-color);
}

.url-info {
  background-color: rgba(var(--background-rgb), 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 10px;
  margin-bottom: 12px;
}

.url-info p {
  font-size: 12px;
  margin: 0 0 4px;
  color: var(--text-color-light);
}

.url-info code {
  display: block;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  padding: 8px;
  background-color: var(--input-bg);
  border-radius: var(--border-radius);
  color: var(--text-color);
  overflow-x: auto;
  word-break: break-all;
}

.info-note {
  font-size: 12px !important;
  color: var(--text-color-light);
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 5px !important;
}

/* 深色主题支持 */
.network-info.dark .network-info-inner {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

.network-info.dark .network-info-header {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

.network-info.dark .url-info {
  background-color: rgba(var(--background-rgb), 0.2);
}

.network-info.dark .url-info code {
  background-color: var(--card-bg);
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .network-info {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .network-info-inner {
    width: 100%;
  }
} 